```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数据库水平切分关键问题全解析</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background-color: #f8fafc;
            color: #1e293b;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        }
        .highlight-card {
            transition: all 0.3s ease;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }
        .highlight-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
        }
        .section-divider {
            height: 1px;
            background: linear-gradient(to right, transparent, #cbd5e1, transparent);
        }
        .drop-cap::first-letter {
            float: left;
            font-size: 4.5rem;
            line-height: 0.65;
            margin: 0.1em 0.3em 0.1em 0;
            color: #6366f1;
            font-family: 'Noto Serif SC', serif;
            font-weight: 700;
        }
        .concept-card {
            border-left: 4px solid #6366f1;
            transition: all 0.2s ease;
        }
        .concept-card:hover {
            background-color: #f1f5f9;
        }
        .tooltip-icon {
            color: #8b5cf6;
            cursor: pointer;
        }
    </style>
</head>
<body class="antialiased">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-4 sm:px-6 lg:px-8">
        <div class="max-w-6xl mx-auto">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-10 md:mb-0">
                    <span class="inline-block px-3 py-1 text-xs font-semibold bg-white text-indigo-600 rounded-full mb-4">数据库架构设计</span>
                    <h1 class="text-4xl md:text-5xl font-bold mb-6 leading-tight">
                        数据库水平切分<br>关键问题全解析
                    </h1>
                    <p class="text-lg md:text-xl opacity-90 mb-8 max-w-lg">
                        深入探讨分库分表架构设计中的核心考量，构建高性能、高可用的分布式数据库系统
                    </p>
                    <div class="flex space-x-4">
                        <a href="#content" class="bg-white text-indigo-600 px-6 py-3 rounded-lg font-medium hover:bg-opacity-90 transition duration-300">
                            探索内容 <i class="fas fa-arrow-down ml-2"></i>
                        </a>
                    </div>
                </div>
                <div class="md:w-1/2">
                    <div class="bg-white bg-opacity-10 p-8 rounded-xl backdrop-blur-sm border border-white border-opacity-20">
                        <div class="mermaid">
                            graph TD
                                A[水平切分关键问题] --> B[分片策略]
                                A --> C[数据一致性]
                                A --> D[查询优化]
                                A --> E[数据迁移]
                                A --> F[负载均衡]
                                A --> G[备份恢复]
                                A --> H[监控告警]
                                A --> I[安全性]
                                B --> B1[分片键选择]
                                B --> B2[分片规则]
                                C --> C1[事务管理]
                                C --> C2[数据复制]
                                D --> D1[跨分片查询]
                                D --> D2[索引设计]
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main id="content" class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-16">
        <!-- Introduction -->
        <section class="mb-20">
            <div class="drop-cap text-lg leading-relaxed text-slate-700">
                数据库水平切分(分库分表)是解决大数据量场景下数据库性能瓶颈的重要解决方案。一个合理设计和实施的水平切分系统能够显著提升系统的扩展性、可用性和性能。然而，不当的设计可能导致复杂的查询、事务管理困难以及运维复杂度激增。本文系统性地梳理了实施水平切分时需要考虑的关键问题和技术方案，帮助开发者构建高效稳定的分布式数据库架构。
            </div>
        </section>

        <!-- Key Sections -->
        <section class="mb-20">
            <div class="grid md:grid-cols-2 gap-8">
                <!-- 分片策略选择 -->
                <div class="highlight-card bg-white rounded-xl p-8">
                    <div class="flex items-center mb-6">
                        <div class="bg-indigo-100 text-indigo-600 p-3 rounded-full mr-4">
                            <i class="fas fa-project-diagram text-xl"></i>
                        </div>
                        <h2 class="text-2xl font-bold text-gray-800">1. 分片策略选择</h2>
                    </div>
                    <div class="space-y-4">
                        <div class="concept-card bg-slate-50 p-5 rounded-lg">
                            <h3 class="font-semibold text-lg text-gray-800 mb-2">分片键选择</h3>
                            <p class="text-gray-700">选择合适的分片键是水平切分的核心，需基于业务查询模式，确保数据均匀分布且减少跨分片查询。</p>
                        </div>
                        <div class="flex flex-wrap gap-2 mt-4">
                            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-indigo-100 text-indigo-800">
                                <i class="fas fa-fingerprint mr-2"></i> 用户ID
                            </span>
                            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-purple-100 text-purple-800">
                                <i class="fas fa-calendar-alt mr-2"></i> 时间范围
                            </span>
                            <span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">
                                <i class="fas fa-hashtag mr-2"></i> 哈希分片
                            </span>
                        </div>
                        <div class="mt-6">
                            <h4 class="font-medium text-gray-900 mb-2">分片规则类型对比</h4>
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">类型</th>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">优点</th>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">缺点</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200 text-sm">
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap text-gray-700 font-medium">范围分片</td>
                                        <td class="px-4 py-3 text-gray-600">适合范围查询，实现简单</td>
                                        <td class="px-4 py-3 text-gray-600">可能导致热点</td>
                                    </tr>
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap text-gray-700 font-medium">哈希分片</td>
                                        <td class="px-4 py-3 text-gray-600">数据分布均匀</td>
                                        <td class="px-4 py-3 text-gray-600">不支持范围查询</td>
                                    </tr>
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap text-gray-700 font-medium">列表分片</td>
                                        <td class="px-4 py-3 text-gray-600">业务语义明确</td>
                                        <td class="px-4 py-3 text-gray-600">扩展性受限</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>

                <!-- 数据一致性 -->
                <div class="highlight-card bg-white rounded-xl p-8">
                    <div class="flex items-center mb-6">
                        <div class="bg-purple-100 text-purple-600 p-3 rounded-full mr-4">
                            <i class="fas fa-link text-xl"></i>
                        </div>
                        <h2 class="text-2xl font-bold text-gray-800">2. 分片后的数据一致性</h2>
                    </div>
                    <div class="space-y-4">
                        <div class="concept-card bg-slate-50 p-5 rounded-lg">
                            <h3 class="font-semibold text-lg text-gray-800 mb-2">分布式事务</h3>
                            <p class="text-gray-700">跨分片事务需要特殊处理，常见方案包括XA协议、TCC模式和SAGA模式，各有其适用场景和权衡。</p>
                        </div>
                        <div class="mt-4">
                            <div class="flex items-start mb-4">
                                <div class="flex-shrink-0 mt-1 mr-3">
                                    <span class="h-2 w-2 bg-purple-500 rounded-full"></span>
                                </div>
                                <div>
                                    <h4 class="font-medium text-gray-900">XA协议</h4>
                                    <p class="text-gray-600 text-sm">强一致性方案，但性能较差且存在阻塞问题</p>
                                </div>
                            </div>
                            <div class="flex items-start mb-4">
                                <div class="flex-shrink-0 mt-1 mr-3">
                                    <span class="h-2 w-2 bg-indigo-500 rounded-full"></span>
                                </div>
                                <div>
                                    <h4 class="font-medium text-gray-900">TCC模式</h4>
                                    <p class="text-gray-600 text-sm">Try-Confirm-Cancel模式，适用于高并发但对业务有侵入性</p>
                                </div>
                            </div>
                            <div class="flex items-start">
                                <div class="flex-shrink-0 mt-1 mr-3">
                                    <span class="h-2 w-2 bg-blue-500 rounded-full"></span>
                                </div>
                                <div>
                                    <h4 class="font-medium text-gray-900">SAGA模式</h4>
                                    <p class="text-gray-600 text-sm">长事务解决方案，通过补偿操作保证最终一致性</p>
                                </div>
                            </div>
                        </div>
                        <div class="concept-card bg-slate-50 p-5 rounded-lg">
                            <h3 class="font-semibold text-lg text-gray-800 mb-2">数据复制与同步</h3>
                            <p class="text-gray-700">确保分片间数据一致性需要可靠的数据同步机制，如基于binlog的复制、双写或消息队列实现。</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <section class="section-divider my-12"></section>

        <!-- Two Column Layout -->
        <section class="mb-20">
            <div class="grid md:grid-cols-2 gap-8">
                <!-- 查询和索引设计 -->
                <div>
                    <div class="flex items-center mb-8">
                        <div class="bg-blue-100 text-blue-600 p-3 rounded-full mr-4">
                            <i class="fas fa-search text-xl"></i>
                        </div>
                        <h2 class="text-2xl font-bold text-gray-800">3. 查询和索引设计</h2>
                    </div>
                    <div class="bg-white rounded-xl p-6 mb-8">
                        <h3 class="font-semibold text-lg text-gray-800 mb-4">跨分片查询优化</h3>
                        <p class="text-gray-700 mb-4">跨分片查询是水平切分后性能瓶颈的主要来源，应该尽量避免。当不可避免时，可以考虑以下优化策略：</p>
                        <ul class="space-y-3">
                            <li class="flex items-start">
                                <span class="flex-shrink-0 bg-blue-100 text-blue-600 p-1 rounded-full mr-3">
                                    <i class="fas fa-check text-xs"></i>
                                </span>
                                <span class="text-gray-700">使用分布式查询引擎合并结果</span>
                            </li>
                            <li class="flex items-start">
                                <span class="flex-shrink-0 bg-blue-100 text-blue-600 p-1 rounded-full mr-3">
                                    <i class="fas fa-check text-xs"></i>
                                </span>
                                <span class="text-gray-700">建立全局索引表加速查询</span>
                            </li>
                            <li class="flex items-start">
                                <span class="flex-shrink-0 bg-blue-100 text-blue-600 p-1 rounded-full mr-3">
                                    <i class="fas fa-check text-xs"></i>
                                </span>
                                <span class="text-gray-700">考虑使用读写分离减轻查询压力</span>
                            </li>
                        </ul>
                    </div>
                    <div class="bg-white rounded-xl p-6">
                        <h3 class="font-semibold text-lg text-gray-800 mb-4">分片内索引策略</h3>
                        <p class="text-gray-700 mb-4">每个分片内部的索引设计仍然至关重要，直接影响查询性能：</p>
                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-200 text-sm">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">索引类型</th>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">适用场景</th>
                                        <th class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">注意事项</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap text-gray-700">B-Tree</td>
                                        <td class="px-4 py-3 text-gray-600">范围查询，高基数字段</td>
                                        <td class="px-4 py-3 text-gray-600">写操作较慢，占用空间大</td>
                                    </tr>
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap text-gray-700">Hash</td>
                                        <td class="px-4 py-3 text-gray-600">等值查询</td>
                                        <td class="px-4 py-3 text-gray-600">不支持排序和范围查询</td>
                                    </tr>
                                    <tr>
                                        <td class="px-4 py-3 whitespace-nowrap text-gray-700">复合索引</td>
                                        <td class="px-4 py-3 text-gray-600">多条件查询</td>
                                        <td class="px-4 py-3 text-gray-600">注意字段顺序影响查询性能</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>

                <!-- 数据迁移和升级 -->
                <div>
                    <div class="flex items-center mb-8">
                        <div class="bg-green-100 text-green-600 p-3 rounded-full mr-4">
                            <i class="fas fa-exchange-alt text-xl"></i>
                        </div>
                        <h2 class="text-2xl font-bold text-gray-800">4. 数据迁移和升级</h2>
                    </div>
                    <div class="bg-white rounded-xl p-6 mb-8">
                        <h3 class="font-semibold text-lg text-gray-800 mb-4">数据迁移流程</h3>
                        <div class="mermaid">
                            graph LR
                                A[评估源数据] --> B[设计分片策略]
                                B --> C[选择迁移工具]
                                C --> D[执行全量迁移]
                                D --> E[增量数据同步]
                                E --> F[数据验证]
                                F --> G[切换流量]
                                G --> H[监控优化]
                        </div>
                        <p class="text-gray-700 mt-4">数据迁移需要精心规划，确保业务无感知。常见工具有阿里巴巴的Canal、ShardingSphere-Scaling等。</p>
                    </div>
                    <div class="bg-white rounded-xl p-6">
                        <h3 class="font-semibold text-lg text-gray-800 mb-4">系统升级策略</h3>
                        <div class="flex items-start mb-4">
                            <div class="flex-shrink-0 mt-1 mr-3">
                                <span class="h-2 w-2 bg-green-500 rounded-full"></span>
                            </div>
                            <div>
                                <h4 class="font-medium text-gray-900">灰度发布</h4>
                                <p class="text-gray-600 text-sm">逐步将流量切换到新版本，观察效果后再全面升级</p>
                            </div>
                        </div>
                        <div class="flex items-start mb-4">
                            <div class="flex-shrink-0 mt-1 mr-3">
                                <span class="h-2 w-2 bg-blue-500 rounded-full"></span>
                            </div>
                            <div>
                                <h4 class="font-medium text-gray-900">双写方案</h4>
                                <p class="text-gray-600 text-sm">新老系统同时写入，确保数据一致性后再切换</p>
                            </div>
                        </div>
                        <div class="flex items-start">
                            <div class="flex-shrink-0 mt-1 mr-3">
                                <span class="h-2 w-2 bg-purple-500 rounded-full"></span>
                            </div>
                            <div>
                                <h4 class="font-medium text-gray-900">版本兼容性</h4>
                                <p class="text-gray-600 text-sm">确保新版本兼容旧版数据格式和API</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <section class="section-divider my-12"></section>

        <!-- Full Width Sections -->
        <section class="mb-20">
            <!-- 负载均衡 -->
            <div class="bg-white rounded-xl p-8 mb-12">
                <div class="flex items-center mb-8">
                    <div class="bg-yellow-100 text-yellow-600 p-3 rounded-full mr-4">
                        <i class="fas fa-balance-scale text-xl"></i>
                    </div>
                    <h2 class="text-2xl font-bold text-gray-800">5. 负载均衡</h2>
                </div>
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <h3 class="font-semibold text-lg text-gray-800 mb-4">分片负载均衡</h3>
                        <p class="text-gray-700 mb-4">确保各分片负载均衡是水平切分成功的关键，需要从多个维度考虑：</p>
                        <div class="flex items-start mb-3">
                            <span class="flex-shrink-0 mt-1 mr-3 text-yellow-600">
                                <i class="fas fa-circle text-xs"></i>
                            </span>
                            <span class="text-gray-700">
                                <span class="font-medium">数据量均衡:</span> 监控各分片数据增长速度，必要时重新平衡
                            </span>
                        </div>
                        <div class="flex items-start mb-3">
                            <span class="flex-shrink-0 mt-1 mr-3 text-yellow-600">
                                <i class="fas fa-circle text-xs"></i>
                            </span>
                            <span class="text-gray-700">
                                <span class="font-medium">查询负载均衡:</span> 分析各分片QPS和资源使用率
                            </span>
                        </div>
                        <div class="flex items-start">
                            <span class="flex-shrink-0 mt-1 mr-3 text-yellow-600">
                                <i class="fas fa-circle text-xs"></i>
                            </span>
                            <span class="text-gray-700">
                                <span class="font-medium">热点处理:</span> 识别并处理热点分片或热点数据
                            </span>
                        </div>
                    </div>
                    <div>
                        <h3 class="font-semibold text-lg text-gray-800 mb-4">自动调优策略</h3>
                        <div class="bg-slate-50 p-5 rounded-lg mb-4">
                            <div class="flex items-center mb-2">
                                <i class="fas fa-brain text-blue-500 mr-2"></i>
                                <h4 class="font-medium text-gray-900">动态分片调整</h4>
                            </div>
                            <p class="text-gray-700 text-sm">根据负载情况自动分裂或合并分片，实现弹性扩展</p>
                        </div>
                        <div class="bg-slate-50 p-5 rounded-lg">
                            <div class="flex items-center mb-2">
                                <i class="fas fa-sliders-h text-purple-500 mr-2"></i>
                                <h4 class="font-medium text-gray-900">智能路由</h4>
                            </div>
                            <p class="text-gray-700 text-sm">基于查询模式和历史性能数据优化路由策略</p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 备份与恢复 -->
            <div class="bg-white rounded-xl p-8 mb-12">
                <div class="flex items-center mb-8">
                    <div class="bg-red-100 text-red-600 p-3 rounded-full mr-4">
                        <i class="fas fa-shield-alt text-xl"></i>
                    </div>
                    <h2 class="text-2xl font-bold text-gray-800">6. 备份与恢复</h2>
                </div>
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <h3 class="font-semibold text-lg text-gray-800 mb-4">备份策略</h3>
                        <div class="bg-gradient-to-r from-red-50 to-pink-50 p-5 rounded-lg mb-4">
                            <div class="flex items-center justify-between mb-2">
                                <div class="flex items-center">
                                    <i class="fas fa-database text-red-500 mr-2"></i>
                                    <h4 class="font-medium text-gray-900">全量备份</h4>
                                </div>
                                <span class="text-xs bg-red-100 text-red-800 px-2 py-1 rounded-full">周期性</span>
                            </div>
                            <p class="text-gray-700 text-sm">定期对整个数据集进行完整备份，确保基础数据安全</p>
                        </div>
                        <div class="bg-gradient-to-r from-orange-50 to-yellow-50 p-5 rounded-lg">
                            <div class="flex items-center justify-between mb-2">
                                <div class="flex items-center">
                                    <i class="fas fa-sync-alt text-orange-500 mr-2"></i>
                                    <h4 class="font-medium text-gray-900">增量备份</h4>
                                </div>
                                <span class="text-xs bg-orange-100 text-orange-800 px-2 py-1 rounded-full">高频</span>
                            </div>
                            <p class="text-gray-700 text-sm">只备份自上次备份后变化的数据，减少备份时间和存储消耗</p>
                        </div>
                    </div>
                    <div>
                        <h3 class="font-semibold text-lg text-gray-800 mb-4">恢复机制</h3>
                        <div class="space-y-4">
                            <div class="flex items-start">
                                <span class="flex-shrink-0 mt-1 mr-3 text-red-500">
                                    <i class="fas fa-exclamation-triangle"></i>
                                </span>
                                <div>
                                    <h4 class="font-medium text-gray-900">灾难恢复计划</h4>
                                    <p class="text-gray-700 text-sm">制定详细的恢复步骤和时间目标(RTO/RPO)</p>
                                </div>
                            </div>
                            <div class="flex items-start">
                                <span class="flex-shrink-0 mt-1 mr-3 text-blue-500">
                                    <i class="fas fa-vial"></i>
                                </span>
                                <div>
                                    <h4 class="font-medium text-gray-900">定期恢复演练</h4>
                                    <p class="text-gray-700 text-sm">验证备份有效性并评估恢复时间</p>
                                </div>
                            </div>
                            <div class="flex items-start">
                                <span class="flex-shrink-0 mt-1 mr-3 text-green-500">
                                    <i class="fas fa-check-double"></i>
                                </span>
                                <div>
                                    <h4 class="font-medium text-gray-900">数据一致性检查</h4>
                                    <p class="text-gray-700 text-sm">恢复后验证数据完整性和业务功能</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 监控和故障处理 -->
            <div class="bg-white rounded-xl p-8">
                <div class="flex items-center mb-8">
                    <div class="bg-blue-100 text-blue-600 p-3 rounded-full mr-4">
                        <i class="fas fa-chart-line text-xl"></i>
                    </div>
                    <h2 class="text-2xl font-bold text-gray-800">7. 系统监控和故障处理</h2>
                </div>
                <div class="grid md:grid-cols-2 gap-8">
                    <div>
                        <h3 class="font-semibold text-lg text-gray-800 mb-4">监控指标</h3>
                        <div class="grid grid-cols-2 gap-4">
                            <div class="bg-blue-50 p-4 rounded-lg">
                                <div class="flex items-center mb-2">
                                    <i class="fas fa-tachometer-alt text-blue-500 mr-2"></i>
                                    <span class="font-medium text-gray-800">性能指标</span>
                                </div>
                                <ul class="text-sm text-gray-600 space-y-1">
                                    <li>查询响应时间</li>
                                    <li>TPS/QPS</li>
                                    <li>资源利用率</li>
                                </ul>
                            </div>
                            <div class="bg-green-50 p-4 rounded-lg">
                                <div class="flex items-center mb-2">
                                    <i class="fas fa-heartbeat text-green-500 mr-2"></i>
                                    <span class="font-medium text-gray-800">健康状态</span>
                                </div>
                                <ul class="text-sm text-gray-600 space-y-1">
                                    <li>节点存活状态</li>
                                    <li>连接池状态</li>
                                    <li>复制延迟</li>
                                </ul>
                            </div>
                            <div class="bg-purple-50 p-4 rounded-lg">
                                <div class="flex items-center mb-2">
                                    <i class="fas fa-exclamation-circle text-purple-500 mr-2"></i>
                                    <span class="font-medium text-gray-800">异常检测</span>
                                </div>
                                <ul class="text-sm text-gray-600 space-y-1">
                                    <li>慢查询</li>
                                    <li>错误率</li>
                                    <li>死锁检测</li>
                                </ul>
                            </div>
                            <div class="bg-yellow-50 p-4 rounded-lg">
                                <div class="flex items-center mb-2">
                                    <i class="fas fa-expand-arrows-alt text-yellow-500 mr-2"></i>
                                    <span class="font-medium text-gray-800">容量规划</span>
                                </div>
                                <ul class="text-sm text-gray-600 space-y-1">
                                    <li>存储使用率</li>
                                    <li>增长趋势</li>
                                    <li>分片均衡度</li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div>
                        <h3 class="font-semibold text-lg text-gray-800 mb-4">故障处理策略</h3>
                        <div class="bg-slate-50 p-5 rounded-lg mb-4">
                            <div class="flex items-center mb-2">
                                <i class="fas fa-random text-blue-500 mr-2"></i>
                                <h4 class="font-medium text-gray-900">故障转移 (Failover)</h4>
                            </div>
                            <p class="text-gray-700 text-sm">自动切换到备用节点，确保服务连续性</p>
                        </div>
                        <div class="bg-slate-50 p-5 rounded-lg mb-4">
                            <div class="flex items-center mb-2">
                                <i class="fas fa-undo text-purple-500 mr-2"></i>
                                <h4 class="font-medium text-gray-900">重试机制</h4>
                            </div>
                            <p class="text-gray-700 text-sm">对暂时性故障实施指数退避重试策略</p>
                        </div>
                        <div class="bg-slate-50 p-5 rounded-lg">
                            <div class="flex items-center mb-2">
                                <i class="fas fa-bullhorn text-red-500 mr-2"></i>
                                <h4 class="font-medium text-gray-900">告警通知</h4>
                            </div>
                            <p class="text-gray-700 text-sm">分级告警，确保关键问题及时响应</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </main>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
    </script>
</body>
</html>
```